<table>
    <tr>
        <td style="vertical-align: top">
            
        </td>
    </tr>
</table>
<script>
  $(function() {
    $( "#tabs" ).tabs();
  });
  </script>
<div class="noidung" id='here'>
    <style>
        .ui-tabs .ui-tabs-nav li a {
            float: left;
            padding: 0.5em 0.5em;
            text-decoration: none;
        }
    </style>
    <div style="padding-left: 0px; width: 100%">
        <div class="colleft">

            <?php $this->renderPartial('commercial'); ?>
        </div>
        <div class="colright" style="margin: 0px">
            <div style="margin-left: 7px; width: 100%">

                <div class="bgtopic340">
                    <div class="topic_title">
                        Thông tin
                    </div>
                </div>
                <div style="width: 630px; padding-bottom: 10px; margin-top: 10px">
                    <iframe src="http://docs.google.com/gview?url=http://chomoionline.com/DANH-SACH-PCC-VPCC.doc&embedded=true" style="width:630px; height:500px;" frameborder="0"></iframe>
                 <embed width="100%" height="300px" name="plugin" src="http://chomoionline.com/DANH-SACH-PCC-VPCC.pdf" type="application/pdf">

                    <?php
                    if ($model != null) {
                        foreach ($model as $item) {
                            ?>
                            <table style="border: 0px">
                                <tr>
                                    <td style=" width: 163px; height: 70px">
                                        <img src="<?php echo Yii::app()->request->baseUrl . '/upload/product/avata/' . $item->logo; ?>" width="100" height="100" title="<?php echo $item->hovaten;?>">
                                    </td>
                                    <td>
                                        <?php
                                        echo '<b>' . $item->hovaten . '</b><br/>';
                                        if (!empty($item->tencongty)) {
                                            echo 'Tổ chức: ' . $item->tencongty . '<br/>';
                                        }
                                        if (!empty($item->diachi)) {
                                            echo 'Địa chỉ: ' . $item->diachi . '<br/>';
                                        }
                                        if (!empty($item->email)) {
                                            echo 'Email: ' . $item->email . '<br/>';
                                        }
                                        if (!empty($item->phone)) {
                                            echo 'Điện thoại: ' . $item->phone . '<br/>';
                                        }
                                        if (!empty($item->fax)) {
                                            echo 'Fax: ' . $item->fax . '<br/>';
                                        }
                                        if (!empty($item->theluatsu)) {
                                            echo 'Thẻ luật sư: ' . $item->theluatsu.'<br/>';
                                        }
                                        if (!empty($item->chungchihanhnghe)) {
                                            echo 'Chứng chỉ hành nghề: ' . $item->chungchihanhnghe.'<br/>';
                                        }
                                        if (!empty($item->website)) {
                                            echo 'Website: ' . $item->website;
                                        }
                                        
                                        ?>
                                        
                                    </td>
                                </tr>
                            </table>
                            <div style="margin-top: 10px">
                                <div style="float: left; margin-right: 20px">

                                    <div class="fb-like" data-href="<?php echo 'http://chomoionline.com/' . $item->url ; ?>" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
                                </div>
                                <div style="float: left; margin-right: 20px">
                                    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
                                    <g:plusone size="medium"></g:plusone>

                                </div>
                                <div >
                                    <a href="https://twitter.com/share" class="twitter-share-button" data-lang="vn" data-url="<?php echo 'http://chomoionline.com/' . $item->url ; ?>">Tweet</a>
                                    <script>!function(d, s, id) {
                                            var js, fjs = d.getElementsByTagName(s)[0];
                                            if (!d.getElementById(id)) {
                                                js = d.createElement(s);
                                                js.id = id;
                                                js.src = "https://platform.twitter.com/widgets.js";
                                                fjs.parentNode.insertBefore(js, fjs);
                                            }
                                        }(document, "script", "twitter-wjs");</script>
                                </div>
                            </div>
                            <div id="tabs" style="margin-top: 10px">
                                <ul>
                                    <li><a href="#tabs-1">Giới Thiệu</a></li>

                                    <li><a href="#tabs-2">Sản Phẩm/Dịch Vụ</a></li>
                                    <li><a href="#tabs-3">Khuyến Mãi</a></li>
                                    <li><a href="#tabs-4">Chứng Nhận</a></li>
                                    <li><a href="#tabs-5">Tuyển Dụng</a></li>

                                </ul>
                                <div id="tabs-1">
                                    <p><?php echo $item->gioithieu; ?></p>
                                </div>

                                <div id="tabs-2">
                                    <p><?php echo $item->sanpham; ?></p>
                                </div>
                                <div id="tabs-3">
                                    <p><?php echo $item->tinquangcao; ?></p>
                                </div>
                                <div id="tabs-4">
                                    <p><?php echo $item->chungnhan; ?></p>
                                </div>

                                <div id="tabs-5">
                                    <p><?php echo $item->tuyendung; ?></p>
                                </div>
                            </div>
                            <p><b>Bản Đồ</b><br/>
                                <?php echo $item->nhanhieu; ?>
                            </p>
                            <?php
                        }
                        // echo $model->content;
                    } else {
                        echo '<div style="color:red;font-weight: bold;font-size: 15pt;">Không tìm thấy trang bạn tìm</div>';
                    }
                    ?>

                </div>
            </div>
        </div>
    </div>

    <div style="clear: both"></div>
</div>
